package com.wkx.mapper;

import com.wkx.pojo.Roles;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RolesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Roles record);

    int insertSelective(Roles record);

    Roles selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Roles record);

    int updateByPrimaryKey(Roles record);

    List<Roles> selectRolesByAdmin(Integer aId);

    List<Roles> selectRoles();

    int deleteRolesByAid(Integer aid);

    void insertRoles(@Param("role") Integer role, @Param("aid") Integer aid);
}